<script type="text/javascript">
    function setData(isi,elm, isilbl, elmLbl, myDialog){
        $(myDialog).dialog("close");
        document.getElementById(elm).value = isi;
        document.getElementById(elmLbl).value = isilbl;
        
        $.ajax ({
        type:"POST",
        url:"<?php echo Yii::app()->createUrl('/specialajax/getlocation'); ?>",
        data:"locationID="+isi,
        dataType:"json",
            success:function(data){        
                    var LocationID = data[0].LocationID;
                    var ZipCode = data[0].ZipCode;
                    var RegencyName = data[0].RegencyName;
                    
                    if(LocationID == isi && (elm == 'txt_ReceiverAddressLocationID' || elm == 'txt_ShipperAddressLocationID')){
                        $('#' + elmLbl + 'ZipCode').val(ZipCode);
                        $('#' + elmLbl).val(RegencyName);
                    }
            }
        });
        
        $.ajax ({
        type:"POST",
        url:"<?php echo Yii::app()->createUrl('/specialajax/getshippingtype'); ?>",
        data:"ItemShippingTypeID="+isi,
        dataType:"json",
            success:function(data){        
                    var Cost = data[0].Cost;
                    
                    if(elm == 'txt_ItemShippingTypeID'){
                        $('#txt_BiayaKirim').val(Cost);
                    }
                    setTotalAmount();
            }
        });
        
        $.ajax ({
        type:"POST",
        url:"<?php echo Yii::app()->createUrl('/specialajax/getpacking'); ?>",
        data:"PackingID="+isi,
        dataType:"json",
            success:function(data){        
                    var PackingCost = data[0].PackingCost;
                    
                    if(elm == 'txt_ItemPackingID'){
                        $('#txt_BiayaPacking').val(PackingCost);
                    }
                    setTotalAmount();
            }
        });
        
        $.ajax ({
        type:"POST",
        url:"<?php echo Yii::app()->createUrl('/specialajax/getasuransi'); ?>",
        data:"InsuranceNumber="+isi,
        dataType:"json",
            success:function(data){        
                    var InsuranceNumber = data[0].InsuranceNumber;
                    var InsuranceCost = data[0].InsuranceCost;
                    var AdministrationFee = data[0].AdministrationFee;
                                        
                    if(elm == 'txt_InsuranceNumber'){
                        $('#txt_BiayaAsuransi').val(InsuranceCost);
                        $('#txt_AdmAsuransi').val(AdministrationFee);
                    }
                    setTotalAmount();
            }
        });
    }
    
    $(document).ready(function(){
        $("#txt_OtherFee").change(function(){
            setTotalAmount();
        });
        $("#txt_AdministrationFee").change(function(){
            setTotalAmount();
        });
        $("#txt_TaxAmount").change(function(){
            setTotalAmount();
        });
    });
 
    function setTotalAmount(){
        var biayakirim = parseInt($('#txt_BiayaKirim').val().trim()==""?0:$('#txt_BiayaKirim').val());
        var biayapacking = parseInt($('#txt_BiayaPacking').val().trim()==""?0:$('#txt_BiayaPacking').val());
        var biayaasuransi = parseInt($('#txt_BiayaAsuransi').val().trim()==""?0:$('#txt_BiayaAsuransi').val());
        var biayaAdminasuransi = parseInt($('#txt_AdmAsuransi').val().trim()==""?0:$('#txt_AdmAsuransi').val());
        var OtherFee = parseInt($('#txt_OtherFee').val().trim()==""?0:$('#txt_OtherFee').val());
        var biayaAdmin = parseInt($('#txt_AdministrationFee').val().trim()==""?0:$('#txt_AdministrationFee').val());
        var taxAmount = parseInt($('#txt_TaxAmount').val().trim()==""?0:$('#txt_TaxAmount').val());
        
        $('#txt_TotalAmount').val(biayakirim + biayapacking + biayaasuransi + biayaAdminasuransi + OtherFee + biayaAdmin + taxAmount);
    }
</script>

<?php Yii::import('application.extensions.CJuiDateTimePicker.CJuiDateTimePicker') ?> 
<?php
/* @var $this OdsregistrationformController */
/* @var $model Odsregistrationform */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'odsregistrationform-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

<table>
    
    <tr>
	<div class="row">
		<td><?php echo $form->labelEx($model,'RegistrationID'); ?></td>
		<td>: <?php echo CHtml::activeNumberField($model,'RegistrationID',array('id' => 'txt_RegistrationID', 'size'=>20, 'value'=>'Generate By System', 'readonly'=>true)); ?></td>
		<td><?php echo $form->error($model,'RegistrationID'); ?></td>
	</div>
    </tr>
    <?php /*
    <tr>
	<div class="row">
		<td><?php echo $form->labelEx($model,'RegistrationDate'); ?></td>
		<td>: <?php echo "";$this->widget('CJuiDateTimePicker',array( 
                            'model'=>$model, //Model object 
                            'attribute'=>'RegistrationDate', //attribute name 
                            'mode'=>'datetime', //use "time","date" or "datetime" (default) 
                            'options' => array( 
                                'showAnim' => 'fold', 
                                'dateFormat' => 'yy-mm-dd', // save to db format 
                                'timeFormat' => 'hh:mm:ss', // save to db format 
                            ), // jquery plugin options 
                            'language' => 'id')); ?></td>
		<td><?php echo $form->error($model,'RegistrationDate'); ?></td>
	</div>
    </tr>
     * 
     */
    ?>
    <tr>
	<div class="row">
            <td><?php echo $form->labelEx($mShipperHuman,'Name'); ?></td>
            <td>: <?php echo CHtml::activeTextField($mShipperHuman, 'Name') ?></td>
            <td><?php echo $form->error($mShipperHuman,'Name'); ?></td>
	</div>
    </tr>
    <tr>
	<div class="row">
            <td><?php echo $form->labelEx($mShipperHumanAtt,'Address'); ?></td>
            <td>: <?php echo CHtml::activeTextArea($mShipperHumanAtt, 'Address', array('col'=>40, 'row'=>4)) ?></td>
            <td><?php echo $form->error($mShipperHumanAtt,'Address'); ?></td>
	</div>
    </tr>
    <tr>
	<div class="row">
            <td><?php echo $form->labelEx($mShipperHumanAtt,'AddressLocationID'); ?></td>
            <td>: <?php echo CHtml::activeNumberField($mShipperHumanAtt,'AddressLocationID',array('id' => 'txt_ShipperAddressLocationID', 'size'=>20, 'readonly'=>'true')); ?> 
                    <?php echo CHtml::button('...', array('onclick'=>'$("#myDialog_ShipperAddressLocationID").dialog("open"); return false;',)); ?> 
                    <input type="text" id="lb_ShipperAddressLocationID" style="border: 0" readonly="">
                                        
                    <?php $this->beginWidget('zii.widgets.jui.CJuiDialog', array(
                            'id' => 'myDialog_ShipperAddressLocationID',
                            'options' => array('title' => 'ShipperHumanAttribute-ShipperAddressLocationID','width' => 600,'height' => 500,'autoOpen' => false,),
                            ));
                            
                            $dialShipperAddressLocationID = new myDialog();
                            $arrKolom = array('LocationID', 
                                array('name'=>'country.CountryName'),
                                array('name'=>'province.ProvinceName'),
                                array('name'=>'regency.RegencyName'),
                                array('name'=>'subDistrict.SubDistrictName'),
                                );
                            $sourceShipperAddressLocationID = $dialShipperAddressLocationID->renderDialog("ShipperLocation", "LocationID", "txt_ShipperAddressLocationID", "lb_ShipperAddressLocationID", "CountryID", "#myDialog_ShipperAddressLocationID", $arrKolom);
                            eval($sourceShipperAddressLocationID);
                        ?>
                    <?php $this->endWidget('zii.widgets.jui.CJuiDialog'); ?> 
            </td>
            <td><?php echo $form->error($mShipperHumanAtt,'AddressLocationID'); ?></td>
	</div>
    </tr>
    <tr>
	<div class="row">
            <td><?php echo $form->labelEx($mShipperLocation,'ZipCode') ?></td>
            <td>: <?php echo CHtml::activeTextField($mShipperLocation, 'ZipCode', array('id'=>'lb_ShipperAddressLocationIDZipCode', 'readonly'=>'true')) ?></td>
            <td><?php echo $form->error($mShipperLocation,'ZipCode'); ?></td>
	</div>
    </tr>
    <tr>
	<div class="row">
            <td><?php echo $form->labelEx($mShipperHumanAtt,'PhoneNumber'); ?></td>
            <td>: <?php echo CHtml::activeTextField($mShipperHumanAtt, 'PhoneNumber') ?></td>
            <td><?php echo $form->error($mShipperHumanAtt,'PhoneNumber'); ?></td>
	</div>
    </tr>
    <tr>
	<div class="row">
            <td><?php echo $form->labelEx($mReceiverHuman,'Name'); ?></td>
            <td>: <?php echo CHtml::activeTextField($mReceiverHuman, 'Name') ?></td>
            <td><?php echo $form->error($mReceiverHuman,'Name'); ?></td>
	</div>
    </tr>
    <tr>
	<div class="row">
            <td><?php echo $form->labelEx($mReceiverHumanAtt,'Address'); ?></td>
            <td>: <?php echo CHtml::activeTextArea($mReceiverHumanAtt, 'Address', array('col'=>40, 'row'=>4)) ?></td>
            <td><?php echo $form->error($mReceiverHumanAtt,'Address'); ?></td>
	</div>
    </tr>
    <tr>
	<div class="row">
            <td><?php echo $form->labelEx($mReceiverHumanAtt,'AddressLocationID'); ?></td>
            <td>: <?php echo CHtml::activeNumberField($mReceiverHumanAtt,'AddressLocationID',array('id' => 'txt_ReceiverAddressLocationID', 'size'=>20, 'readonly'=>'true')); ?> 
                    <?php echo CHtml::button('...', array('onclick'=>'$("#myDialog_ReceiverAddressLocationID").dialog("open"); return false;',)); ?> 
                    <input type="text" id="lb_ReceiverAddressLocationID" style="border: 0" readonly="">
                                        
                    <?php $this->beginWidget('zii.widgets.jui.CJuiDialog', array(
                            'id' => 'myDialog_ReceiverAddressLocationID',
                            'options' => array('title' => 'ReceiverHumanAttribute-ReceiverAddressLocationID','width' => 600,'height' => 500,'autoOpen' => false,),
                            ));
                            $dialReceiverAddressLocationID = new myDialog();
                            $arrKolom = array('LocationID', 
                                array('name'=>'country.CountryName'),
                                array('name'=>'province.ProvinceName'),
                                array('name'=>'regency.RegencyName'),
                                array('name'=>'subDistrict.SubDistrictName'),
                                );
                            $sourceReceiverAddressLocationID = $dialReceiverAddressLocationID->renderDialog("ReceiverLocation", "LocationID", "txt_ReceiverAddressLocationID", "lb_ReceiverAddressLocationID", "CountryID", "#myDialog_ReceiverAddressLocationID", $arrKolom);
                            eval($sourceReceiverAddressLocationID);
                        ?>
                    <?php $this->endWidget('zii.widgets.jui.CJuiDialog'); ?> 
            </td>
            <td><?php echo $form->error($mReceiverHumanAtt,'AddressLocationID'); ?></td>
	</div>
    </tr>
    <tr>
	<div class="row">
            <td><?php echo $form->labelEx($mReceiverLocation,'ZipCode') ?></td>
            <td>: <?php echo CHtml::activeTextField($mReceiverLocation, 'ZipCode', array('id'=>'lb_ReceiverAddressLocationIDZipCode','disabled'=>'disabled')) ?></td>
            <td><?php echo $form->error($mReceiverLocation,'ZipCode'); ?></td>
	</div>
    </tr>
    <tr>
	<div class="row">
            <td><?php echo $form->labelEx($mReceiverHumanAtt,'PhoneNumber'); ?></td>
            <td>: <?php echo CHtml::activeTextField($mReceiverHumanAtt, 'PhoneNumber') ?></td>
            <td><?php echo $form->error($mReceiverHumanAtt,'PhoneNumber'); ?></td>
	</div>
    </tr>
    <tr>
	<div class="row">
            <td><?php echo $form->labelEx($itemDetail,'ItemName'); ?></td>
            <td>: <?php echo CHtml::activeTextArea($itemDetail,'ItemName',array('id' => 'txt_ItemName', 'Cols'=>25, 'Rows'=>3)); ?></td>
            <td><?php echo $form->error($itemDetail,'ItemName'); ?></td>
	</div>
    </tr>
    <tr>
	<div class="row">
		<td><?php echo $form->labelEx($model,'TotalItemsDetail'); ?></td>
		<td>: <?php echo CHtml::activeNumberField($model,'TotalItemsDetail',array('id' => 'txt_TotalItemsDetail', 'size'=>11)); ?></td>
		<td><?php echo $form->error($model,'TotalItemsDetail'); ?></td>
	</div>
    </tr>
    <tr>
	<div class="row">
		<td><?php echo $form->labelEx($itemDetail,'ItemWeightReal'); ?></td>
		<td>: <?php echo CHtml::activeNumberField($itemDetail,'ItemWeightReal',array('id' => 'txt_ItemWeightReal', 'size'=>11)); ?></td>
		<td><?php echo $form->error($itemDetail,'ItemWeightReal'); ?></td>
	</div>
    </tr>
    <tr>
	<div class="row">
		<td><?php echo $form->labelEx($itemDetail,'ItemMeasurementUnitIDReal'); ?></td>
		<td>: <?php echo CHtml::activeNumberField($itemDetail,'ItemMeasurementUnitIDReal',array('id' => 'txt_ItemMeasurementUnitIDReal', 'size'=>6,  'readonly'=>'true')); ?> 
                    <?php echo CHtml::button('...', array('onclick'=>'$("#myDialog_ItemMeasurementUnitIDReal").dialog("open"); return false;',)); ?> 
                    <input type="text" id="lb_ItemMeasurementUnitIDReal" style="border: 0" readonly="">
                                        
                    <?php $this->beginWidget('zii.widgets.jui.CJuiDialog', array(
                            'id' => 'myDialog_ItemMeasurementUnitIDReal',
                            'options' => array('title' => 'Odsitemsdetail-ItemMeasurementUnitIDReal','width' => 600,'height' => 500,'autoOpen' => false,),
                            ));
                            $dialItemMeasurementUnitIDReal = new myDialog();
                            $sourceItemMeasurementUnitIDReal = $dialItemMeasurementUnitIDReal->renderDialog("GfmeasurementunitWeightReal", "MeasurementUnitID", "txt_ItemMeasurementUnitIDReal", "lb_ItemMeasurementUnitIDReal", "MeasurementUnitNameShort", "#myDialog_ItemMeasurementUnitIDReal");
                            eval($sourceItemMeasurementUnitIDReal);
                        ?>
                    <?php $this->endWidget('zii.widgets.jui.CJuiDialog'); ?> 
                </td>
		<td><?php echo $form->error($itemDetail,'ItemMeasurementUnitIDReal'); ?></td>
	</div>
    </tr>
    <tr>
	<div class="row">
		<td><?php echo $form->labelEx($itemDetail,'ItemWeight'); ?></td>
		<td>: <?php echo CHtml::activeNumberField($itemDetail,'ItemWeight',array('id' => 'txt_ItemWeight', 'size'=>20)); ?></td>
		<td><?php echo $form->error($itemDetail,'ItemWeight'); ?></td>
	</div>
    </tr>
    <tr>
	<div class="row">
		<td><?php echo $form->labelEx($itemDetail,'ItemMeasurementUnitID'); ?></td>
		<td>: <?php echo CHtml::activeNumberField($itemDetail,'ItemMeasurementUnitID',array('id' => 'txt_ItemMeasurementUnitID', 'size'=>6, 'readonly'=>'true')); ?> 
                    <?php echo CHtml::button('...', array('onclick'=>'$("#myDialog_ItemMeasurementUnitID").dialog("open"); return false;',)); ?> 
                    <input type="text" id="lb_ItemMeasurementUnitID" style="border: 0" readonly="">
                                        
                    <?php $this->beginWidget('zii.widgets.jui.CJuiDialog', array(
                            'id' => 'myDialog_ItemMeasurementUnitID',
                            'options' => array('title' => 'Odsitemsdetail-ItemMeasurementUnitID','width' => 600,'height' => 500,'autoOpen' => false,),
                            ));
                            $dialItemMeasurementUnitID = new myDialog();
                            $sourceItemMeasurementUnitID = $dialItemMeasurementUnitID->renderDialog("GfmeasurementunitWeight", "MeasurementUnitID", "txt_ItemMeasurementUnitID", "lb_ItemMeasurementUnitID", "MeasurementUnitNameShort", "#myDialog_ItemMeasurementUnitID");
                            eval($sourceItemMeasurementUnitID);
                        ?>
                    <?php $this->endWidget('zii.widgets.jui.CJuiDialog'); ?> 
                </td>
		<td><?php echo $form->error($itemDetail,'ItemMeasurementUnitID'); ?></td>
	</div>
    </tr>
    <tr>
	<div class="row">
		<td><?php echo $form->labelEx($itemDetail,'ItemDimension'); ?></td>
		<td>: <?php echo CHtml::activeTextField($itemDetail,'ItemDimension',array('id' => 'txt_ItemDimension','size'=>50,'maxlength'=>50)); ?></td>
		<td><?php echo $form->error($itemDetail,'ItemDimension'); ?></td>
	</div>
    </tr>
    <tr>
	<div class="row">
            <td><?php echo $form->labelEx($model,'ItemShippingTypeID'); ?></td>
            <td>: <?php echo CHtml::activeNumberField($model,'ItemShippingTypeID',array('id' => 'txt_ItemShippingTypeID', 'size'=>6, 'readonly'=>'true')); ?> 
                <?php echo CHtml::button('...', array('onclick'=>'$("#myDialog_ItemShippingTypeID").dialog("open"); return false;',)); ?> 
                <input type="text" id="lb_ItemShippingTypeID" style="border: 0" readonly="">

                <?php $this->beginWidget('zii.widgets.jui.CJuiDialog', array(
                        'id' => 'myDialog_ItemShippingTypeID',
                        'options' => array('title' => 'Odsregistrationform-ItemShippingTypeID','width' => 600,'height' => 500,'autoOpen' => false,),
                        ));
                        $dialItemShippingTypeID = new myDialog();
                        $sourceItemShippingTypeID = $dialItemShippingTypeID->renderDialog("masteritemshippingtype", "ItemShippingTypeID", "txt_ItemShippingTypeID", "lb_ItemShippingTypeID", "ItemShippingTypeName", "#myDialog_ItemShippingTypeID", NULL);
                        eval($sourceItemShippingTypeID);
                    ?>
                <?php $this->endWidget('zii.widgets.jui.CJuiDialog'); ?> 
            </td>
            <td><?php echo $form->error($model,'ItemShippingTypeID'); ?></td>
	</div>
    </tr>
    <tr>
	<div class="row">
		<td><?php echo $form->labelEx($model,'ItemPackingID'); ?></td>
		<td>: <?php echo CHtml::activeNumberField($model,'ItemPackingID',array('id' => 'txt_ItemPackingID', 'size'=>6)); ?> 
                    <?php echo CHtml::button('...', array('onclick'=>'$("#myDialog_ItemPackingID").dialog("open"); return false;',)); ?> 
                    <input type="text" id="lb_ItemPackingID" style="border: 0" readonly="">
                                        
                    <?php $this->beginWidget('zii.widgets.jui.CJuiDialog', array(
                            'id' => 'myDialog_ItemPackingID',
                            'options' => array('title' => 'Odsregistrationform-ItemPackingID','width' => 600,'height' => 500,'autoOpen' => false,),
                            ));
                            $dialItemPackingID = new myDialog();
                            $sourceItemPackingID = $dialItemPackingID->renderDialog("masterpacking", "PackingID", "txt_ItemPackingID", "lb_ItemPackingID", "PackingName", "#myDialog_ItemPackingID");
                            eval($sourceItemPackingID);
                        ?>
                    <?php $this->endWidget('zii.widgets.jui.CJuiDialog'); ?> 
                </td>
		<td><?php echo $form->error($model,'ItemPackingID'); ?></td>
	</div>
    </tr>
    <tr>
	<div class="row">
		<td><?php echo $form->labelEx($model,'InsuranceNumber'); ?></td>
		<td>: <?php echo CHtml::activeNumberField($model,'InsuranceNumber',array('id' => 'txt_InsuranceNumber', 'size'=>11)); ?> 
                    <?php echo CHtml::button('...', array('onclick'=>'$("#myDialog_InsuranceNumber").dialog("open"); return false;',)); ?> 
                    <input type="text" id="lb_InsuranceNumber" style="border: 0" readonly="">
                                        
                    <?php $this->beginWidget('zii.widgets.jui.CJuiDialog', array(
                            'id' => 'myDialog_InsuranceNumber',
                            'options' => array('title' => 'Odsregistrationform-InsuranceNumber','width' => 600,'height' => 500,'autoOpen' => false,),
                            ));
                            $dialInsuranceNumber = new myDialog();
                            $sourceInsuranceNumber = $dialInsuranceNumber->renderDialog("insprograms", "InsuranceNumber", "txt_InsuranceNumber", "lb_InsuranceNumber", "InsuranceName", "#myDialog_InsuranceNumber");
                            eval($sourceInsuranceNumber);
                        ?>
                    <?php $this->endWidget('zii.widgets.jui.CJuiDialog'); ?> 
                </td>
		<td><?php echo $form->error($model,'InsuranceNumber'); ?>
</td>
	</div>
    </tr>
    <tr>
	<div class="row">
		<td><?php echo $form->labelEx($model,'PaymentTypeID'); ?></td>
		<td>: <?php echo CHtml::activeNumberField($model,'PaymentTypeID',array('id' => 'txt_PaymentTypeID', 'size'=>4)); ?> 
                    <?php echo CHtml::button('...', array('onclick'=>'$("#myDialog_PaymentTypeID").dialog("open"); return false;',)); ?> 
                    <input type="text" id="lb_PaymentTypeID" style="border: 0" readonly="">
                                        
                    <?php $this->beginWidget('zii.widgets.jui.CJuiDialog', array(
                            'id' => 'myDialog_PaymentTypeID',
                            'options' => array('title' => 'Odsregistrationform-PaymentTypeID','width' => 600,'height' => 500,'autoOpen' => false,),
                            ));
                            $dialPaymentTypeID = new myDialog();
                            $sourcePaymentTypeID = $dialPaymentTypeID->renderDialog("masterpaymenttype", "PaymentTypeID", "txt_PaymentTypeID", "lb_PaymentTypeID", "PaymentTypeName", "#myDialog_PaymentTypeID");
                            eval($sourcePaymentTypeID);
                        ?>
                    <?php $this->endWidget('zii.widgets.jui.CJuiDialog'); ?> </td>
		<td><?php echo $form->error($model,'PaymentTypeID'); ?>
</td>
	</div>
    </tr>
    <tr>
	<div class="row">
		<td><?php echo $form->labelEx($model,'ShippingDistance'); ?></td>
		<td>: <?php echo CHtml::activeNumberField($model,'ShippingDistance',array('id' => 'txt_ShippingDistance', 'size'=>11)); ?></td>
		<td><?php echo $form->error($model,'ShippingDistance'); ?></td>
	</div>
    </tr>
    <tr>
	<div class="row">
		<td><?php echo $form->labelEx($model,'AdministrationFee'); ?></td>
		<td>: <?php echo CHtml::activeNumberField($model,'AdministrationFee',array('id' => 'txt_AdministrationFee', 'size'=>20)); ?></td>
		<td><?php echo $form->error($model,'AdministrationFee'); ?></td>
	</div>
    </tr>
    
    <tr>
	<div class="row">
		<td><?php echo $form->labelEx($model,'TaxAmount'); ?></td>
		<td>: <?php echo CHtml::activeNumberField($model,'TaxAmount',array('id' => 'txt_TaxAmount', 'size'=>20)); ?></td>
		<td><?php echo $form->error($model,'TaxAmount'); ?></td>
	</div>
    </tr>
    
    <?php /*
    <tr>
	<div class="row">
		<td><?php echo $form->labelEx($model,'isActive'); ?></td>
		<td>: <?php echo CHtml::activeCheckBox($model,'isActive', array('id' => 'cb_isActive')); ?></td>
		<td><?php echo $form->error($model,'isActive'); ?></td>
	</div>
    </tr>
     * */
    ?>
    
    <tr>
	<div class="row">
            <td><label>Biaya Kirim</label></td>
            <td>: <input type="text" id = "txt_BiayaKirim" style="border: 0" readonly="true" value="0" ></td>
            <td></td>
	</div>
    </tr>
    
    <tr>
	<div class="row">
            <td><label>Biaya Packing</label></td>
            <td>: <input type="text" id = "txt_BiayaPacking" style="border: 0" readonly="true" value="0"></td>
            <td></td>
	</div>
    </tr>
    <tr>
	<div class="row">
		<td><?php echo $form->labelEx($model,'OtherFee'); ?></td>
		<td>: <?php echo CHtml::activeNumberField($model,'OtherFee',array('id' => 'txt_OtherFee', 'size'=>20, 'value'=>'')); ?></td>
		<td><?php echo $form->error($model,'OtherFee'); ?></td>
	</div>
    </tr>
    <tr>
	<div class="row">
            <td><label>Biaya Asuransi</label></td>
            <td>: <input type="text" id = "txt_BiayaAsuransi" style="border: 0" readonly="true" value="0" ></td>
            <td></td>
	</div>
    </tr>
    <tr>
	<div class="row">
            <td><label>Biaya Adm Asuransi</label></td>
            <td>: <input type="text" id = "txt_AdmAsuransi" style="border: 0" readonly="true" value="0" ></td>
            <td></td>
	</div>
    </tr>
    <tr>
	<div class="row">
		<td><?php echo $form->labelEx($model,'TotalAmount'); ?></td>
		<td>: <?php echo CHtml::activeNumberField($model,'TotalAmount',array('id' => 'txt_TotalAmount', 'size'=>20, 'readonly'=>'true')); ?></td>
		<td><?php echo $form->error($model,'TotalAmount'); ?></td>
	</div>
    </tr>
<tr>
    <td colspan="3">
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>
    </td>
</tr>
</table>
</div>
<?php $this->endWidget(); ?>
<!-- form -->